apiVersion: v1
kind: Service
metadata:
  name: rta-debug-svc
  namespace: spark-cluster
spec:
  type: NodePort
  ports:
    # the port that this service should serve on
  - port: 22
    targetPort: 22
    nodePort: 30122
    name: rta-debug-ssh
  selector:
    role: debug

---
apiVersion: v1
kind: ReplicationController
metadata:
  name: rta-debug-rc
  namespace: spark-cluster
spec:
  replicas: 1
  template:
    metadata:
      labels:
        role: debug
    spec:
      containers:
      - name: rta-debug
        image: index.tenxcloud.com/zhangshun/rta-debug:v1
        resources:
          requests:
            cpu: 100m
            memory: 100Mi
        ports:
        - containerPort: 22
        volumeMounts:
        - name: rta-debug
          mountPath: /debug
      volumes:
      - name: rta-debug
        glusterfs:
            endpoints: glusterfs-cluster
            path: {{ gluster_rta_debug_volname }}
            readOnly: false


